package cn.getech.data.development.mapper;

import cn.getech.data.development.entity.WorkFlowDep;
import cn.getech.data.development.model.vo.JobInfoDevOpsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface WorkFlowDepMapper extends BaseMapper<WorkFlowDep> {
    List<WorkFlowDep> selectByworkFlowDepList(@Param("menuSets") Set<Long> menuSets);

    void updateLastCorOozied(@Param("id")Long id);

    void updateLastOozied(@Param("id")Long id);

    void insertWorkFlowDep(@Param("workFlowDep") WorkFlowDep workFlowDep);

    JobInfoDevOpsVO getJobDepData(@Param("workMenuId") Long workMenuId);

    void updateBatch(@Param("deps") List<Long> deps,@Param("assigneePerId") Integer assigneePerId);

    List<JobInfoDevOpsVO> listJobInfoData(@Param("depIds") List<Long> depIds);
}
